package com.mallcai.bigdata.ladon.service.report.impl.handler.support.rule;

/**
 * @author feixy
 * @version 1.0
 * @date 2019-07-20 19:03
 */
public class NumberGreatThenOperator extends AbstractNumberRuleOperator {

    private static final String[] COMMANDS = {"gn", "great then"};

    @Override
    protected boolean innerTest(Number obj1, Number obj2) {
        return obj1.doubleValue() > obj2.doubleValue();
    }

    @Override
    public String[] getCommands() {
        return COMMANDS;
    }
}
